package com.example.eurekaconsumerfeign;

import com.netflix.appinfo.EurekaInstanceConfig;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

@RestController
public class ConsumerController {

    @Resource
    private ConsumerService consumerService;

    @RequestMapping(value = "/consumerFeign", method = RequestMethod.GET)
    public String consumer() {
        return consumerService.hello();
    }

}
